package c.e.a.c.e;

import android.graphics.Rect;
import android.view.View;
import android.widget.FrameLayout;
import com.google.android.material.badge.BadgeDrawable;
import java.lang.ref.WeakReference;

/* compiled from: BadgeUtils */
public class a {
    public static void a(BadgeDrawable badgeDrawable, View view, FrameLayout frameLayout) {
        Rect rect = new Rect();
        view.getDrawingRect(rect);
        badgeDrawable.setBounds(rect);
        badgeDrawable.o = new WeakReference(view);
        badgeDrawable.p = new WeakReference(frameLayout);
        badgeDrawable.e();
        badgeDrawable.invalidateSelf();
    }
}
